package cn.ilikes.webs.webs.uilts;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;

import cn.ilikes.webs.bases.ActionUnits;

public class WebUnits {
	
	public  static boolean islogin(HttpServletRequest request) {
		Cookie[] cookies = request.getCookies();
		if(cookies==null)return false;
		for (Cookie cookie : cookies) {
			if (cookie.getName().equals(ActionUnits.LGOIN_USERID)) {
				return true;
			} 
		}
		return false;
	}

}
